Telegram Group Search
xuanwo 成功了,我与有荣焉
看到下面这种依赖错误

Failed to build `pycocotools @ git+
https://github.com/nvidia/cocoapi.git@fa44301f7a8b3f95a9f2751d19bfd735b0f6c65d#subdirectory=PythonAPI`
...
ModuleNotFoundError: No module named 'numpy'

你知道它和下面这个选项有关,而且可以通过它绕过吗?

--no-build-isolation Disable isolation when building source distributions [env: UV_NO_BUILD_ISOLATION=]

Python打包难就难在这里,饶是你文档写得再好,选项无比丰富,依然有一道理解的鸿沟,这不是换用一个包管理器就能解决的
debug is hard, fix is easy
What happened?
除了一个精妙的 patch,开源世界里还有很多贡献可以做。
比如说这位哥们的回复,把这些复杂的机制和trade off不仅掌握,而且详尽地描述出来。我作为一个non-native speaker,很多时候都是干着急。感动天地,理解万岁。
一万个感谢
https://github.com/pdm-project/pdm/issues/3464#issuecomment-2798881404
这不比v2ex发个贴招黑强吗
#share 这些hunter是真牛逼
2025/05/31 23:50:10
Back to Top
HTML Embed Code: